<?php

class User_Form_Signup extends Form
{
    protected function _init()
    {
        $this -> setName('user_signup') -> setTitle('@self') -> setDesc('@self');
        
        $this -> addElement('@title', 'displayname', array(
            'label' => '@self',
            'desc' => '@self'
        ));
        
        $this -> addElement('@title', 'username', array(
            'label' => '@self',
            'desc' => '@self'
        ));
        
        $this -> addElement('@email', 'email', array(
            'label' => '@self',
            'desc' => '@self'
        ));

        $this -> addElement('@password', 'password', array(
            'label' => '@self',
            'desc' => '@self'
        ));
        
        $this -> addElement('@password', 'password2', array(
            'label' => '@self',
            'desc' => '@self'
        ));
        
        $this -> addElement('@date', 'bod', array(
            'label' => '@self',
            'desc' => '@self'
        ));
        
        $this -> addElement('@checkbox', 'termsofuse', array(
            'label' => '@self',
            'desc' => '@self'
        ));
        
        $this -> addElement('@checkbox', 'privacy', array(
            'label' => '@self',
            'desc' => '@self'
        ));
        
        /**
         * add submit button
         */
        $this -> addElement('@group', 'buttons');
        $this -> buttons -> addElement('@submit', '_submit') -> addElement('@cancel', '_cancel');
    }

}
